package cn.iocoder.yudao.module.system.enums.partner;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 *
 * 合伙人优惠券分享状态
 *
 * @author 万民匠心
 */
@AllArgsConstructor
@Getter
public enum PartnerCouponShareStatusEnum implements IntArrayValuable {

    UNUSED(0, "未领取"),
    USED(1, "已领取");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(PartnerCouponShareStatusEnum::getStatus).toArray();

    /**
     * 状态
     */
    private final Integer status;
    /**
     * 资源类型名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
